package com.jit.firsthibernate.domain;

import java.sql.Date;

public class Profile {
	private int id;
	private String name;
	private String surname;
	private Date birthday;
	private String phoneNumber;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("\nPROFILE INFO\n");
		sb.append("++++++++++++++++++++++++++++++++++++");
		sb.append("\nID " + id + "\n");
		sb.append("\nName " + name + "\n");
		sb.append("\nSurname " + surname + "\n");
		sb.append("\nBirthday " + birthday + "\n");
		sb.append("\nPhone number " + phoneNumber + "\n");
		sb.append("++++++++++++++++++++++++++++++++++++");
		sb.append("\n\n");

		return sb.toString();
	}
}
